# Maintainer: Johannes Löthberg <johannes@kyriasis.com>
# Maintainer: Robin Candau <antiz@archlinux.org>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: karnath <karnathtorjian@gmail.com>

pkgname=zathura-ps
pkgver=0.2.7
pkgrel=2

pkgdesc="Adds ps support to zathura by using the libspectre library"
url="https://pwmt.org/projects/zathura-ps"
arch=('loong64' 'x86_64')
license=('custom')

depends=('libspectre' 'zathura' 'desktop-file-utils')
makedepends=('meson' 'ninja')

source=(zathura-ps-$pkgver.tar.gz::https://github.com/pwmt/zathura-ps/archive/$pkgver.tar.gz)

sha512sums=('b7074d941180938cc5ab3756c587d2bb7e6a87a04707c04eb9707664966ef6fb2f2b8e7b60cb5be0a2548ebb8ab4d2759aa9727f02085946fe6c66a0c559639d')

build(){
  cd zathura-ps-$pkgver
  arch-meson build
  ninja -C build
}

package(){
  DESTDIR="$pkgdir" ninja -C zathura-ps-$pkgver/build install
  install -Dm0644 zathura-ps-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
